package com.anjiplus.template.gaea.business.modules.dict.controller;

import com.anji.plus.gaea.curd.controller.GaeaBaseController;
import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.dict.controller.dto.GaeaDictItemDTO;
import com.anjiplus.template.gaea.business.modules.dict.controller.param.GaeaDictItemParam;
import com.anjiplus.template.gaea.business.modules.dict.dao.entity.GaeaDictItem;
import com.anjiplus.template.gaea.business.modules.dict.service.GaeaDictItemService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 数据字典项(GaeaDictItem)实体类
 *
 * @author lirui
 * @since 2021-03-10 13:05:59
 */
@RestController
@RequestMapping("/gaeaDictItem")
@Tag(description = "/gaeaDictItem", name = "数据字典项")
public class GaeaDictItemController extends GaeaBaseController<GaeaDictItemParam, GaeaDictItem, GaeaDictItemDTO> {

	@Autowired
	private GaeaDictItemService gaeaDictItemService;

	@Override
	public GaeaBaseService<GaeaDictItemParam, GaeaDictItem> getService() {
		return gaeaDictItemService;
	}

	@Override
	public GaeaDictItem getEntity() {
		return new GaeaDictItem();
	}

	@Override
	public GaeaDictItemDTO getDTO() {
		return new GaeaDictItemDTO();
	}

}
